package com.zlzxm.shoesmarket.view.adapter.entity;

/**
 * CREATE BY zlzxm ON 4/20/21
 */
public class EntityOperateSize {

    private String size;
    private String price;
    private int num;
    private String note;

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public boolean sub(){

        if(num >0){

            num =  num - 1;

            return true;
        }

        return false;
    }

    public void add(){

        num = num + 1;
    }
}
